package com.cunjin.visitor.entity;


import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.springframework.context.annotation.Scope;

@Scope("prototype")
@Table(name="cunjin_visitor_t")
public class VisitorEntity {
	@Id
    private Integer id;

    private String visitingTime;

    private String goTime;

    private String cause;

    private Integer dormitoryId;

    private Integer studentId;
    
    //非数据库字段
    @Transient
    private String studentName;
    @Transient
    private String dormitoryName;
    
    

	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	public String getDormitoryName() {
		return dormitoryName;
	}

	public void setDormitoryName(String dormitoryName) {
		this.dormitoryName = dormitoryName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	
	public String getVisitingTime() {
		return visitingTime;
	}

	public void setVisitingTime(String visitingTime) {
		this.visitingTime = visitingTime;
	}

	public String getGoTime() {
		return goTime;
	}

	public void setGoTime(String goTime) {
		this.goTime = goTime;
	}

	public String getCause() {
		return cause;
	}

	public void setCause(String cause) {
		this.cause = cause;
	}

	public Integer getDormitoryId() {
		return dormitoryId;
	}

	public void setDormitoryId(Integer dormitoryId) {
		this.dormitoryId = dormitoryId;
	}

	public Integer getStudentId() {
		return studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}

   

   
}